package com.evil.application.pojo.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 设为常用应用 请求实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
public class FavouriteApplicationReqDTO {

    /**
     * 应用key
     */
    @NotBlank(message = "应用key不能为空")
    private String applicationKey;

    /**
     * 0:关，1:开
     */
    @Range(min = 0, max = 1, message = "参数错误")
    @NotNull(message = "参数不能为空")
    private Integer favourite;
}
